package kr.co.doriclassic.powerjava.chapter08;
class A{
/*	public void aa(){
		System.out.println("aa()");
	}

	public void aa(int a){
		System.out.println("aa(int a)");
	}
	
	public void aa(double b){
		System.out.println("aa(double a)");

	}*/
	
	public void aa(int... a){
		System.out.println("인수의 개수:"+a.length);
		
		for(int c:a){
			System.out.println(c);
		}
		System.out.println();
	}
	
	public void bb(String st, int ...a){
		System.out.println(st);
		System.out.println("인수의 개수:"+a.length);
		
		for(int c:a){
			System.out.println(c);
		}
		System.out.println();
	}
/*	
  	public void aa(){
		System.out.println("aa - before");
		//bb();
		System.out.println("aa - after");
	}

  public void bb(){
		System.out.println("bb - before");
		cc();
		System.out.println("bb - after");
	}
	public void cc(){
		System.out.println("cc - before");
		System.out.println("cc - after");
	}*/
}
public class MethodCallTest {
	public static void main(String[] args) {
		A a = new A();
		/*a.aa();
		a.aa(10);
		a.aa(3.14);*/
		a.aa();
		a.aa(1);
		a.aa(1,2);
		a.aa(1,2,3);
		a.aa(1,2,3,4);
		a.aa(1,2,3,4,5);
		
		a.bb("aa", 1);
		a.bb("aa", 1,2);
		a.bb("aa", 1,2,3);
		a.bb("aa", 1,2,3,4);
	}
}
